<SEQ_REGEXP TYPE="KEYWORD3" AT_WORD_START="TRUE" HASH_CHAR="set" >set[\s]+(obs)(([\s]+(?![\D]+))|$)</SEQ_REGEXP> <!--highlight ""set obs" 1000" but not ""set obs" = 1000""-->
<SEQ_REGEXP TYPE="KEYWORD2" AT_WORD_START="TRUE" HASH_CHAR="label">label([\s]+(drop)([\s]+|$))</SEQ_REGEXP> <!--highlight "label "drop"" as keyword2-->
<SEQ_REGEXP TYPE="KEYWORD1" AT_WORD_START="TRUE" HASH_CHAR="macro">macro([\s]+(drop)([\s]+|$))</SEQ_REGEXP> <!--highlight "macro "drop"" as keyword1-->
<SEQ_REGEXP TYPE="KEYWORD3" AT_WORD_START="TRUE" HASH_CHAR="drop" >drop([\s]+(?!if|[=])|$)</SEQ_REGEXP> <!--highlight ""drop" varlist" but not ""drop" if condition"-->
<SEQ_REGEXP TYPE="KEYWORD3" AT_WORD_START="TRUE" HASH_CHAR="keep" >keep([\s]+(?!if|[=])|$)</SEQ_REGEXP> <!--highlight ""keep" varlist" but not ""keep" if condition"-->
<SEQ_REGEXP TYPE="KEYWORD4" AT_WHITESPACE_END="TRUE" HASH_CHAR="set" >set(?!([\s]+[\w]+[\s]*[=]))</SEQ_REGEXP> <!--highlight ""set" variable 1000" but not ""set" varibale = 1000"-->
<!--The following type of comments are ONLY valid inside SEMICOLON environment:-->
<SPAN TYPE="COMMENT1" AT_WHITESPACE_END="TRUE">
<BEGIN>*</BEGIN><END>;</END></SPAN>
<!-- Line comments: -->
<!-- //-line comments at the start of a line do not work reliably in semicolon environment (this is a Stata problem)-->
<!-- e.g.: put //-comment at the line start of two successive lines at the start of semicolon environment: this will lead to an Stata(v10)-error/break-->
<!-- if you want to enable this anyway, just uncomment the follwoing line: -->